import 'package:flutter/material.dart';
//按钮设置
//准备数据:title,image
class IndexNavigatorItem {
  final String title;
  final String imageUri;
  final Function(BuildContext contenxt)? onTap;
  IndexNavigatorItem(this.title, this.imageUri, this.onTap);
}

List<IndexNavigatorItem> indexNavigatorItemList = [
  IndexNavigatorItem('肤质检测', 'static/images/skin1.png',
      (BuildContext context) {
    Navigator.of(context).pushNamed('login');
  }),
  IndexNavigatorItem('AI小助手', 'static/images/AI.png',
      (BuildContext context) {
    Navigator.of(context).pushNamed('login');
  }),
  IndexNavigatorItem('护肤产品', 'static/images/meirong.png',
      (BuildContext context) {
    Navigator.of(context).pushNamed('login');
  }),
  IndexNavigatorItem('互动社区', 'static/images/ci.png',
      (BuildContext context) {
    Navigator.of(context).pushNamed('login');
  }),
];
